package com.obas.events {
   import flash.events.Event;

   [Response(name="{RETURN_ID}", type="com.ease.framework.CommandCompletionEvent")]
   public class RequestPluginsEvent extends Event {
      public static const REQUEST_ID:String = "RequestPluginsEvent_Request";
      public static const RETURN_ID:String = "RequestPluginsEvent_Return";

      public static const TYPE_GET_PERSPECTIVE:String = "getPerspectives";
      public static const TYPE_GET_VIEW:String = "getViews";

      private var _actionType:String;

      public function RequestPluginsEvent(actionType:String = TYPE_GET_PERSPECTIVE,
                                          type:String = null) {
         var typeId : String = type;
         if( type == null ) {
            typeId = REQUEST_ID;
         }
         super(typeId);

         _actionType = actionType;
      }

      public override function clone():Event {
         var event:RequestPluginsEvent = new RequestPluginsEvent(actionType, type);
         return event;
      }

      public function get actionType():String {
         return _actionType;
      }
   }
}